package com.ruoyi.emp.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.emp.api.admain.SysEmployee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteEmpService", value = "ruoyi-emp")
public interface RemoteEmpService {
    @GetMapping("/employee/list")
    public TableDataInfo list(SysEmployee sysEmployee, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
